<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>right</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
<script>
	function deletes(n){
		var fun="del";
		$.ajax({
			async:false,
			type:'POST',
			url:'__APP__/House/lists',
			data:'x_id='+n+"&fun="+fun,
			success:function(msg){
				if(msg=='1'){
					alert(msg);
					$("#obj_"+n).hide();
				}else{
					alert("删除失败");
				}
			}
		});
		}
	function updates(n){
		var fun="updates";
		$.ajax({
			async:false,
			type:'POST',
			url:'__APP__/House/lists',
			data:'x_id='+n+"&fun="+fun,
			success:function(msg){
				//alert(msg);
				$("#content").html(msg);
			}
		});
		}
</script>
<script>
		KE.show({
		id : "x_description_info",
		newlineTag:"br",
		afterChange : function(id) {
		KE.util.setData("x_description_info");
		}
		});
		
		KE.show({
		id : "x_description_img",
		newlineTag:"br",
		afterChange : function(id) {
		KE.util.setData("x_description_img");
		}
		});	
		
		KE.show({
		id : "x_description_map",
		newlineTag:"br",
		afterChange : function(id) {
		KE.util.setData("x_description_map");
		}
		});

		KE.show({
		id : "x_summary_info",
		newlineTag:"br",
		afterChange : function(id) {
		KE.util.setData("x_summary_info");
		}
		});

		KE.show({
		id : "x_nearby",
		newlineTag:"br",
		afterChange : function(id) {
		KE.util.setData("x_nearby");
		}
		});
</script>
</head>

<body>

<div id="container">
  <div id="main"> 
    <div id="content"> 
      <div class="weizhi"><span>当前位置：写字楼列表</span></div>
	  <br/><br/>
			<table>
				<tr>
					<td>房源名</td>
					<td>所属开发商</td>
					<td>操作</td>
				</tr>
				<volist name="result" id="vo">
				<tr id="obj_<{$vo.x_id}>">
					<td><{$vo.x_name}></td>
					<td><{$vo.x_developers}></td>
					<td><a href="#" onclick="deletes(<{$vo.x_id}>)">删除</a>|<a href="#" onclick="updates(<{$vo.x_id}>)">修改</a></td>
				</tr>
				</volist>
			</table>
	
	</div>
	</div>
</div>
</body>
</html>





